package com.atguigu.gmall.activity.service;

import com.atguigu.gmall.model.activity.SeckillGoods;
import com.atguigu.gmall.model.activity.UserRecode;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface SeckillGoodsService extends IService<SeckillGoods> {
    List<SeckillGoods> getAllSeckillGoods();

    SeckillGoods getSeckillGoodsBySkuId(Long skuId);

    String getCode(String skuId, String userId);

    void preSeckillGoodsOrder(UserRecode userRecode);

    Map<String, Object> getOrderTradeData(String userId);
}
